﻿<%@ Control Language="C#" ClassName="GrnFields" %>
<asp:FormView ID="FormView1" runat="server">
    <ItemTemplate>
        <table border="0" cellpadding="3" cellspacing="1">
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataGrnId" runat="server" Text="Import Id:" AssociatedControlID="dataGrnId" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataGrnId" Text='<%# Bind("GrnId") %>' MaxLength="20"
                        Enabled="False" CssClass="text-input"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataGrnId"
                            ValidationGroup="Main" runat="server" Display="Dynamic" ControlToValidate="dataGrnId"
                            ErrorMessage="Required"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataGrnDate" runat="server" Text="Import Date:" AssociatedControlID="dataGrnDate" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataGrnDate" Text='<%# Bind("GrnDate", "{0:dd-MMM-yyyy}") %>'
                        CssClass="text-input datepicker"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataGrnDate"
                            ValidationGroup="Main" runat="server" Display="Dynamic" ControlToValidate="dataGrnDate"
                            ErrorMessage="Required"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataSupplierId" runat="server" Text="Supplier Id:" AssociatedControlID="dataSupplierId" />
                </td>
                <td>
                    <data:EntityDropDownList runat="server" ID="dataSupplierId" DataSourceID="SupplierIdSupplierDataSource"
                        DataTextField="SupplierName" DataValueField="SupplierId" SelectedValue='<%# Bind("SupplierId") %>'
                        AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
                    <data:SupplierDataSource ID="SupplierIdSupplierDataSource" runat="server" SelectMethod="GetAll" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                            ValidationGroup="Main" runat="server" Display="Dynamic" ControlToValidate="dataSupplierId"
                            ErrorMessage="Required"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataPreparedBy" runat="server" Text="Prepared By:" AssociatedControlID="dataPreparedBy" />
                </td>
                <td>
                    <data:EntityDropDownList runat="server" ID="dataPreparedBy" DataSourceID="PreparedByWebUserDataSource"
                        DataTextField="Name" DataValueField="UserId" SelectedValue='<%# Bind("PreparedBy") %>'
                        AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
                    <data:WebUserDataSource ID="PreparedByWebUserDataSource" runat="server" SelectMethod="GetAll" />
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataRemark" runat="server" Text="Remark:" AssociatedControlID="dataRemark" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataRemark" Text='<%# Bind("Remark") %>' MaxLength="250"
                        CssClass="text-input"></asp:TextBox>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:FormView>
